<?php
C_base::yn_file('m'.DS.'Model.php');
class recruitModel extends model{
/***************************个人用户*******************************/
	function user_ss($w=array()){//查询多个
		return $this->user()->w($w)->ss();
	}
	
	function user_s($w){//查询单个
		return $this->user()->w($w)->s();
	}
	
	function user_u($w,$u){//修改
		return $this->user()->w($w)->u($u);
	}
	
	function user_d($w){//删除
		return $this->user()->w($w)->d();
	}
	
	function user_c($w){//写入
		return $this->user()->c($w);
	}
	
	/**
	 * 数据表
	 */
	function user(){
		return $this->db_cms()->recruit_user;
	}
/****************************企业用户**********************************/
	function qy_c($c=array()){//用户写入
		return $this->firm_user()->c($c);
	}
	
	function qy_s($w){//用户查询单条
		return $this->firm_user()->w($w)->s();
	}
	
	function qy_ss($w=array()){//用户查询多条
		return $this->firm_user()->w($w)->ss();
	}
	
	function qy_u($w,$u){//用户修改
		return $this->firm_user()->w($w)->u($u);
	}
	
	function qy_d($w){//用户删除
		return $this->firm_user()->w($w)->d();
	}
	
	/**
	 * 企业用户表操作
	 */
	function firm_user(){
		return $this->db_cms()->recruit_firm;
	}
	
	function qys_c($c){//企业信息写入
		return $this->firm_users()->c($c);
	}
	
	function qys_s($w){//企业信息查询单条
		return $this->firm_users()->w($w)->s();
	}
	
	function qys_ss($w){//企业信息查询多条
		return $this->firm_users()->w($w)->ss();
	}
	
	function qys_u($w,$u){//企业信息修改
		return $this->firm_users()->w($w)->u($u);
	}
	
	function qys_d($w){//企业信息删除
		return $this->firm_users()->w($w)->d();
	}
	
	/**
	 * 企业资料表操作
	 */
	function firm_users(){
		return $this->db_cms()->recruit_firm_base;
	}
	
/***************************个人用户基本信息***************************/
	function ubase_ss($w=array()){//查询多个
		return $this->ubase()->w($w)->ss();
	}
	
	function ubase_s($w){//查询单个
		return $this->ubase()->w($w)->s();
	}
	
	function ubase_u($w,$u){//修改
		return $this->ubase()->w($w)->u($u);
	}
	
	function ubase_d($w){//删除
		return $this->ubase()->w($w)->d();
	}
	
	function ubase_c($w){//写入
		return $this->ubase()->c($w);
	}
	
	/**
	 * 数据表
	 */
	function ubase(){
		return $this->db_cms()->recruit_user_base;
	}
	
/***************************个人简历*******************************/
	function resume_ss($uid,$w=array()){//查询多个
		return $this->resume($uid)->w($w)->ss();
	}
	
	function resume_s($uid,$w){//查询单个
		return $this->resume($uid)->w($w)->s();
	}
	
	function resume_u($uid,$w,$u){//修改
		return $this->resume($uid)->w($w)->u($u);
	}
	
	function resume_d($uid,$w){//删除
		return $this->resume($uid)->w($w)->d();
	}
	
	function resume_c($uid,$w){//写入
		return $this->resume($uid)->c($w);
	}
	
	function resume_del($uid,$w){//删除多个
		return $this->resume($uid)->w($w)->del_all();
	}
	
	/**
	 * 人力资源系统个人简历数据库
	 */
	function resume($uid){
		$biao = 'recruit_resume_'.util::end1($uid);
		return $this->db_cms()->$biao;
	}
	
/***************************兼职简历*******************************/
	function rjob_ss($uid,$w=array()){//查询多个
		return $this->rjob($uid)->w($w)->ss();
	}
	
	function rjob_s($uid,$w){//查询单个
		return $this->rjob($uid)->w($w)->s();
	}
	
	function rjob_u($uid,$w,$u){//修改
		return $this->rjob($uid)->w($w)->u($u);
	}
	
	function rjob_d($uid,$w){//删除
		return $this->rjob($uid)->w($w)->d();
	}
	
	function rjob_c($uid,$w){//写入
		return $this->rjob($uid)->c($w);
	}
	
	function rjob_del($uid,$w){//删除多个
		return $this->rjob($uid)->w($w)->del_all();
	}
	
	/**
	 * 兼职简历数据库
	 */
	function rjob($uid){
		$biao = 'recruit_resume_job_'.util::end1($uid);
		return $this->db_cms()->$biao;
	}
	
/***************************兼职简历用户信息***************************/
	function ruser_ss($w=array()){//查询多个
		return $this->ruser()->w($w)->ss();
	}
	
	function ruser_s($w){//查询单个
		return $this->ruser()->w($w)->s();
	}
	
	function ruser_u($w,$u){//修改
		return $this->ruser()->w($w)->u($u);
	}
	
	function ruser_d($w){//删除
		return $this->ruser()->w($w)->d();
	}
	
	function ruser_c($w){//写入
		return $this->ruser()->c($w);
	}
	
	/**
	 * 兼职简历用户信息
	 */
	function ruser(){
		return $this->db_cms()->recruit_user_resume;
	}
	
/***************************简历投递*******************************/
	function toudi_ss($uid,$w=array()){//查询多个
		return $this->toudi($uid)->w($w)->ss();
	}
	
	function toudi_s($uid,$w){//查询单个
		return $this->toudi($uid)->w($w)->s();
	}
	
	function toudi_u($uid,$w,$u){//修改
		return $this->toudi($uid)->w($w)->u($u);
	}
	
	function toudi_d($uid,$w){//删除
		return $this->toudi($uid)->w($w)->d();
	}
	
	function toudi_c($uid,$w){//写入
		return $this->toudi($uid)->c($w);
	}
	
	function toudi_del($uid,$w){//删除多个
		return $this->toudi($uid)->w($w)->del_all();
	}
	
	/**
	 * 数据表
	 */
	function toudi($uid){
		$biao = 'recruit_user_td_'.util::end1($uid);
		return $this->db_cms()->$biao;
	}
	
/***************************用户统计*******************************/
	function tongji_ss($w=array()){//查询多个
		return $this->tongji()->w($w)->ss();
	}
	
	function tongji_s($w){//查询单个
		return $this->tongji()->w($w)->s();
	}
	
	function tongji_u($w,$u){//修改
		return $this->tongji()->w($w)->u($u);
	}
	
	function tongji_d($w){//删除
		return $this->tongji()->w($w)->d();
	}
	
	function tongji_c($w){//写入
		return $this->tongji()->c($w);
	}
	
	/**
	 * 数据表
	 */
	function tongji(){
		return $this->db_cms()->recruit_user_count;
	}
	
/***************************用户收藏职位*****************************/
	function shoucang_ss($uid,$w=array()){//查询多个
		return $this->shoucang($uid)->w($w)->ss();
	}
	
	function shoucang_s($uid,$w){//查询单个
		return $this->shoucang($uid)->w($w)->s();
	}
	
	function shoucang_u($uid,$w,$u){//修改
		return $this->shoucang($uid)->w($w)->u($u);
	}
	
	function shoucang_d($uid,$w){//删除
		return $this->shoucang($uid)->w($w)->d();
	}
	
	function shoucang_c($uid,$w){//写入
		return $this->shoucang($uid)->c($w);
	}
	
	function shoucang_del($uid,$w){//删除多个
		return $this->shoucang($uid)->w($w)->del_all();
	}
	
	/**
	 * 数据表
	 */
	function shoucang($uid){
		$biao = 'recruit_user_sc_'.util::end1($uid);
		return $this->db_cms()->$biao;
	}
/***************************专家面试意见*****************************/
	function view_ss($uid,$w=array()){//查询多个
		return $this->view($uid)->w($w)->ss();
	}
	
	function view_s($uid,$w){//查询单个
		return $this->view($uid)->w($w)->s();
	}
	
	function view_u($uid,$w,$u){//修改
		return $this->view($uid)->w($w)->u($u);
	}
	
	function view_d($uid,$w){//删除
		return $this->view($uid)->w($w)->d();
	}
	
	function view_c($uid,$w){//写入
		return $this->view($uid)->c($w);
	}
	
	function view_del($uid,$w){//删除多个
		return $this->view($uid)->w($w)->del_all();
	}
	
	/**
	 * 数据表
	 */
	function view($uid){
		$biao = 'recruit_user_view_'.util::end1($uid);
		return $this->db_cms()->$biao;
	}
	
/********************************职位类别******************************/
	function job_c($w){//添加
		return $this->job()->c($w);
	}
	
	function job_s($w){//查询单条
		return $this->job()->w($w)->s();
	}
	
	function job_ss($w=array()){//查询多条
		return $this->job()->w($w)->ss();
	}
	
	function job_u($w,$u){//修改
		return $this->job()->w($w)->u($u);
	}
	
	function job_d($w){//删除
		return $this->job()->w($w)->d();
	}
	/**
	 * 数据表
	 */
	function job(){
		return $this->db_cms()->recruit_job;
	}
	
/********************************行业类别******************************/
	function industry_c($w){//添加
		return $this->industry()->c($w);
	}
	
	function industry_s($w){//查询单条
		return $this->industry()->w($w)->s();
	}
	
	function industry_ss($w=array()){//查询多条
		return $this->industry()->w($w)->ss();
	}
	
	function industry_u($w,$u){//修改
		return $this->industry()->w($w)->u($u);
	}
	
	function industry_d($w){//删除
		return $this->industry()->w($w)->d();
	}
	/**
	 * 数据表
	 */
	function industry(){
		return $this->db_cms()->recruit_industry;
	}
	
/********************************专业类别******************************/
	function major_c($w){//添加
		return $this->major()->c($w);
	}
	
	function major_s($w){//查询单条
		return $this->major()->w($w)->s();
	}
	
	function major_ss($w=array()){//查询多条
		return $this->major()->w($w)->ss();
	}
	
	function major_u($w,$u){//修改
		return $this->major()->w($w)->u($u);
	}
	
	function major_d($w){//删除
		return $this->major()->w($w)->d();
	}
	/**
	 * 数据表
	 */
	function major(){
		return $this->db_cms()->recruit_major;
	}
	
/*****************************人力资源系统专家********************************/
	/***********课程部分****************/
	function sp_c($zjid,$c){  //写
		return $this->sp($zjid)->c($c);
	}
	
	function sp_u($w,$u){ //修
		return $this->sp($w['zjid'])->w($w)->u($u);
	}
	
	function sp_s($zjid,$w){ //查【单条】
		return $this->sp($zjid)->w($w)->s();
	}
	
	function sp_ss($zjid,$w=''){ //查【多条】
		return $this->sp($zjid)->w($w)->ss();
	}
	
	function sp_del($zjid,$w){//删除多个
		return $this->sp($zjid)->w($w)->del_all();
	}
	
	function sp($zjid){
		$sp= 'recruit_sp_'.util::end1($zjid);
		return $this->db_cms()->$sp;
	}
	/***********查看视频部分****************/
	function look_ss($uid,$w=array()){//查【多条】
		return $this->look($uid)->w($w)->ss();
	}
	
	function look_del($uid,$w){//删除多个
		return $this->look($uid)->w($w)->del_all();
	}
	
	function look($uid){
		$sp= 'recruit_sp_look_'.util::end1($uid);
		return $this->db_cms()->$sp;
	}
	
	/*************VIP专家********************/
	function vbase_ss($w=array()){//查询多个
		return $this->Vbase()->w($w)->ss();
	}
	
	function vbase_s($w){//查询单个
		return $this->Vbase()->w($w)->s();
	}
	
	function vbase_u($w,$u){//修改
		return $this->Vbase()->w($w)->u($u);
	}
	
	function vbase_d($w){//删除
		return $this->Vbase()->w($w)->d();
	}
	
	function vbase_c($w){//写入
		return $this->Vbase()->c($w);
	}
	
	/**
	 * 数据表
	 */
	function Vbase(){
		return $this->db_cms()->recruit_vip_base;
	}

}
?>